import {formatDate,formatMoney } from "@/utils/FormatUtil";//引入格式化工具
import global_ from "@/utils/GlobalDict";//引入字典
//List=global_.elSelectConverter(global_.type);

//纳税人类型
var taxpayerTypeFilter = (value) => {
    return global_.dicRender(global_.taxpayerType,value);
};
export {taxpayerTypeFilter}
//收支类型
var billTypeFilter = (value) => {
	return global_.dicRender(global_.billType,value);
};
export {billTypeFilter}
//交易类型
var tradeTypeFilter = (value) => {
	return global_.dicRender(global_.tradeType,value);
};
export {tradeTypeFilter}


//时间格式过滤 yyyy-MM-dd hh:mm:ss
var formatDateFilter = (value,_format) => {
    if(!_format){
        _format = 'yyyy-MM-dd';
    }
    if(value!=undefined&&value!=null){//时间非空才处理
        let date = new Date(value);//转换时间格式
        return formatDate(date,_format);//执行格式化
    }
};
export {formatDateFilter}





var yesOrNotFilter = (value) => {
    return global_.dicRender(global_.yesOrNot,value);
}
export {yesOrNotFilter}




//cjianquan 2019/8/19
var boolFilter = (value) => {
    return global_.dicRender(global_.bool,value);
}
export {boolFilter}

//cjianquan 2019/8/28
var statusFilter = (value) => {
    return global_.dicRender(global_.status,value);
}
export {statusFilter}

var sexFilter = (value) => {
  return global_.dicRender(global_.sex,value);
}
export {sexFilter}


